home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.11.gz / 1994.11 / 000041_Harry.Clarke@jet.uk_Fri Nov 4 13:31:06 1994.msg < prev    next >
Internet Message Format  |  1994-11-30  |  2KB

  1. Received: from relay1.pipex.net by cs.umb.edu with SMTP id AA06634
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Fri, 4 Nov 1994 21:10:06 -0500
  3. Received: from eros.Britain.EU.net by relay1.pipex.net with SMTP (PP) 
  4.           id <18724-3@relay1.pipex.net>; Fri, 4 Nov 1994 20:13:43 +0000
  5. Received: from mailhost by eros.britain.eu.net with UUCP 
  6.           id <sg.09549-0@eros.britain.eu.net>; Fri, 4 Nov 1994 14:29:19 +0000
  7. Received: from YD.jet.uk by mailhost.jet.uk (4.1/SMI-4.1) id AA08241;
  8.           Fri, 4 Nov 94 13:31:06 GMT
  9. Date: Fri, 4 Nov 94 13:31:06 GMT
  10. From: Harry.Clarke@jet.uk
  11. Message-Id: <9411041331.AA08241@mailhost.jet.uk>
  12. To: tex-k <tex-k@cs.umb.edu>
  13. Subject: Problem compiling xdvik-18d
  14.  
  15.  
  16. I had problems compiling xdvik-18d under Linux, which I managed to resolve.
  17.  
  18. 1) I had to add the line
  19.     #include <linux/limits.h>
  20.    to the file kpathsea/c-limits.h, I didn't dig too deeply into why the
  21.    file was not included when limits.h was included. Maybe a problem
  22.    with my setup.
  23.  
  24. 2) I had to add the lines
  25.     #include <config.h>
  26.     #include <kpathsea/c-pathmx>
  27.    to the file xdvik/sfSelfFile.c. This is to ensure that PATH-MAX
  28.    was defined correctly
  29.  
  30. 3) I changed CFLAGS in the top Makefile to be
  31.    CFLAGS = -ansi -DNO_FOIL_X_WCHAR_T -O
  32.    gcc seems to want to ansi flag set for the wchar problem, and it also
  33.    solves the alloca definition problem. The -O flag is probably better
  34.    than the -g flag for normal running of the program.
  35.  
  36. When I ran the program (after installation)
  37. If I enter
  38.     xdvi
  39. and then a dvi file selected, the program the crashes as soon as
  40. the OK button is clicked.
  41.  
  42. X Error of failed request:  BadWindow (invalid Window parameter)
  43.   Major opcode of failed request:  18 (X_ChangeProperty)
  44.   Resource id in failed request:  0x0
  45.   Serial number of failed request:  569
  46.   Current serial number in output stream:  571
  47.  
  48. However, if I enter the line
  49.     xdvi file.dvi
  50. The program displays the file. I can then select another file without
  51. error.
  52.  
  53.  
  54. My installation is -
  55. Operating System:    Linux version 1.0.8
  56. Compiler:        gcc version 2.5.8
  57. C Library:        libc version 4.5.24
  58. Windows:        X11R6 (XFree-3.1)
  59.  
  60.  
  61. Regards
  62. Harry Clarke
  63.